﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Data.Entities;

namespace EasyStep.Business.Interfaces
{
    public interface ITestConstantManager : IManager<TestConst>
    {
        TestConst Get(Guid id);
        TestConst Get(string name);
        TestConst GetOrCreateConst(string constNameOrId, string value, Guid constListId, Func<TestConst> onNotFound = null);
        string Convert(TestConst item);
        TestConst Convert(string item);
        IEnumerable<TestConst> GetAll();
        IEnumerable<TestConst> UpdateAll(IEnumerable<TestConst> toData);
    }


    public interface ITestConstantsListManager : IManager<TestConstList>
    {
        TestConstList Get(Guid id);
        IEnumerable<TestConstList> GetProjectConstList(Guid projectId);
        TestConstList GetOrCreateConstList(string constListNameOrId, Guid projectId, Func<TestConstList> onNotFound = null);
    }
}
